* {
  margin: 0;
  padding: 0;
  font-family: 'PingFang SC', sans-serif;
  box-sizing: border-box;
  /* background: #eaf6ff; */
}

.page-wrap {
  height: 100vh;
  width: 100vw;
  /* display: flex; */
}

.page-bg {
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: top;
  width: 100%;
  min-height: 320px;
  padding-bottom: 40px;
  position: absolute;
  top: 0;
  z-index: -1;
}

.page-wrap-hd {
  /* width:100%; */
  height: 213px;
  text-align: center;
  position: relative;

  /* background-color: pink; */
}

.top-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly
}

.top-content h1 {
  padding: 0;
  margin: 0;

  font-size: 36px;
  color: #7be5e4;
  text-shadow: 0 0 5px #000;
}

.top-content .cube {
  width: 150px;
  height: 100px;
  object-fit: contain;
  /* margin-top: 20px; */
}

.side-btn {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  width: 45px;
  height: 100px;
  font-size: 14px;
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  font-weight: bold;
  transform: translateY(-12%);
}

.side-btn.bag {
  left: 0;
  top: 50%;
  border-radius: 0 10px 10px 0;
}

.box-left {
  width: 24px;
  height: 24px;

}

.side-btn.rule {
  right: 0;
  top: 50%;
  border-radius: 10px 0 0 10px;
}

.notice-bar {
  /* margin: 0px auto; */
  background: linear-gradient(90deg, #ffc3d0, #8adeff, #e0ebe5);
  /* 红-绿-蓝渐变 */
  padding: 16px 2.5%;
  border-radius: 10px 10px 0 0;
  display: flex;
  align-items: center;
  /* gap: 10px; */
  font-size: 14px;
  width: 100%;
  overflow-x: hidden;


}

.notice-bar img {
  width: 18px;
  height: 18px;
  margin-right: 5px;
}

.notice-bar-content {
  width: calc(100% - 25px);
  height: 18px;
  overflow: hidden;
  position: relative;
  line-height: 18px;

}

#noticeBar {
  position: absolute;
  white-space: nowrap;
  will-change: transform;
  color: #6b7278;
}


.page-wrap-bd {
  width: 95%;
  height: calc(100% - 290px);
  margin: 0 auto;
  margin-top: 70px;
  position: relative;
  background-color: #f6f6f6;
  padding: 6px;
  border-radius: 12px 12px 0 0;
  overflow-y: scroll;
  /* 允许垂直滚动 */

  /* 隐藏滚动条（适用于大部分浏览器） */
  -ms-overflow-style: none;
  /* IE 和 Edge */
  scrollbar-width: none;
  /* Firefox */
}

.page-wrap-bd::-webkit-scrollbar {
  display: none;
  /* Webkit 浏览器（Chrome, Safari, etc.） */
}

.list-item {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 12px;
  padding: 8px;
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.list-item:last-child {
  margin-bottom: 0;
}

.list-item .tag {
  /* width: 10px;
  height: 10x; */
  color: white;
  font-size: 12px;
  position: absolute;
  top: -4%;
  left: 5%;
  z-index: 1;
}

.list-item .thumb {
  width: 120px;
  height: 120px;

  object-fit: cover;
  position: relative;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.item-info {
  width: calc(100% - 130px);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
  overflow: hidden;
}

.item-info .desc {
  font-size: 12px;
  color: #666;
  margin-bottom: 8px;

}

.item-info .title {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  height: 40px;
  line-height: 20px;
  /* 控制行高，确保每行文字的高度 */
  text-overflow: ellipsis;
  /* 在文本超出时显示省略号 */
  line-clamp: 2;
  /* 限制为两行 */
  white-space: normal;
  /* 允许自动换行 */
}

.item-info .price-num {
  display: flex;
  justify-content: space-between;

}

.price-num .price {
  font-weight: bold;
  font-size: 14px;
}

.price-num .sales {
  color: #a3a3a3;
  font-size: 12px;
}

.item-info .marquee {
  width: 100%;
  display: flex;
  gap: 3px;

  position: relative;
}

.item-info .marquee img {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  flex-shrink: 0;
  /* 确保图片不会缩小 */
}

.barrage {
  height: 50px;
  overflow: hidden;
  font-size: 13px;
  color: #444;
  margin: 10px auto;
  text-align: center;
  font-weight: bold;
  background-color: #ffa4a4;
}

.banner-item {
  width: 100%;
  margin-bottom: 16px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.banner-item:hover {
  transform: translateY(-2px);
}

.banner-img-wrapper {
  position: relative;

  /* overflow: hidden; */

}

.img-container {
  width: 100%;
  position: relative;
}

.banner-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 左上角图标 */
.corner-icon {
  position: absolute;
  top: -4px;
  left: -4px;
  z-index: 2;
}

/* 图片底部右下角文字 */
.img-bottom-text {
  width: 100%;
  position: absolute;
  bottom: 0px;
  right: 0px;
  left: 0px;
  padding: 4px 12px;
  font-size: 24px;
  font-weight: bold;
  text-align: right;
  color: white;
  border-radius: 0 0 2px 2px;
  background: linear-gradient(to bottom , rgba(0,0,0,0)  , rgba(0, 217, 255, 0.4)  ,rgba(0, 153, 255, 0.6) );
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

}

.bottom-text {
  padding: 8px;
}